yum update -y
yum install -y docker
sed -i '18d' /usr/lib/systemd/system/docker.service
sed -i '17a ExecStart=/usr/bin/dockerd-current -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 \\' /usr/lib/systemd/system/docker.service
sed -i 's/{}/{/' /etc/docker/daemon.json
sed -i '1a "registry-mirrors": ["https://2uwdsu2b.mirror.aliyuncs.com"], '  /etc/docker/daemon.json
sed -i '2a "live-restore": true '  /etc/docker/daemon.json
sed -i '3a } '  /etc/docker/daemon.json
systemctl daemon-reload
systemctl restart docker
docker ps

